<template>
  <div class="weekend">
    <div class="weekend-title">
      <span>
        周末去哪儿
      </span>
    </div>
    <ul>
      <li class="weekend-list"
          v-for="item in weekendList"
          :key="item.id">
        <div class="weekend-img">
          <img :src="item.imgUrl">
        </div>
        <div class="weekend-text">
          <div class="weekend-site">
            <span>{{item.site}}</span>
          </div>
          <div class="weekend-info">
            <span>{{item.info}}</span>
          </div>
        </div>
      </li>

    </ul>

  </div>
</template>
<script>
export default {
  props: ['weekendList']
}
</script>

<style scoped>
.weekend {
  width: 100%;
}
.weekend-title {
  font-size: 0.32rem;
  line-height: 0.8rem;
  padding: 0 0.2rem;
}

.weekend-img {
  background: #fff;
}
.weekend-img img {
  width: 100%;
  height: 100%;
}
.weekend-text {
  background: #fff;
}
.weekend-site {
  font-size: 0.28rem;
  font-weight: bold;
  padding: 0.1rem 0.2rem;
}
.weekend-info {
  font-size: 0.28rem;
  padding: 0.1rem 0.2rem;
  padding-bottom: 0.3rem;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}
</style>